package com.ruoyi.hospitalinfo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 医院信息对象 hospital_info
 *
 * @author zjt
 * @date 2025-01-15
 */
public class HospitalInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 医院编号
     */
    @Excel(name = "医院编号")
    private Long hospitalId;

    /**
     * 医院的名称
     */
    @Excel(name = "医院的名称")
    private String hospitalName;

    /**
     * 医院的地址
     */
    @Excel(name = "医院的地址")
    private String address;

    /**
     * 医院联系人姓名
     */
    @Excel(name = "医院联系人姓名")
    private String contactPerson;

    /**
     * 医院联系电话
     */
    @Excel(name = "医院联系电话")
    private String contactPhone;

    /**
     * 与公司合作的起始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "与公司合作的起始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cooperationStartDate;

    /**
     * 与公司合作的终止时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "与公司合作的终止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cooperationEndDate;

    /**
     * 医院标志
     */
    @Excel(name = "医院标志")
    private String hospitalLogo;

    public Long getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(Long hospitalId) {
        this.hospitalId = hospitalId;
    }

    public String getHospitalName() {
        return hospitalName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public Date getCooperationStartDate() {
        return cooperationStartDate;
    }

    public void setCooperationStartDate(Date cooperationStartDate) {
        this.cooperationStartDate = cooperationStartDate;
    }

    public Date getCooperationEndDate() {
        return cooperationEndDate;
    }

    public void setCooperationEndDate(Date cooperationEndDate) {
        this.cooperationEndDate = cooperationEndDate;
    }

    public String getHospitalLogo() {
        return hospitalLogo;
    }

    public void setHospitalLogo(String hospitalLogo) {
        this.hospitalLogo = hospitalLogo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("hospitalId", getHospitalId())
                .append("hospitalName", getHospitalName())
                .append("address", getAddress())
                .append("contactPerson", getContactPerson())
                .append("contactPhone", getContactPhone())
                .append("cooperationStartDate", getCooperationStartDate())
                .append("cooperationEndDate", getCooperationEndDate())
                .append("hospitalLogo", getHospitalLogo())
                .toString();
    }
}
